extern int err_status;
int string2int(char* str);